package com.cnsoft.demo;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.cnsoft.framework.support.MyTokenCommonSupport;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

/**
 * 默认用户登录管理
 * 
 * @author CNSoft
 * @version 2.0.1 2018/7/8 新建
 * @since 2.0.1 2018/7/8
 */
@Controller
public class SystemPageIndexController extends MyTokenCommonSupport {
	// 一览（分页查询）
	@RequestMapping(value = "/", method = RequestMethod.GET)
	public ModelAndView doIndexHome(HttpServletRequest request, HttpServletResponse response) throws Exception {
		// 设定展示界面
		ModelAndView modelAndView = new ModelAndView("/index");
		return modelAndView;
	}

	// 一览（分页查询）
	@RequestMapping(value = "/index.html", method = RequestMethod.GET)
	public ModelAndView doIndexHome2(HttpServletRequest request, HttpServletResponse response) throws Exception {
		// 设定展示界面
		ModelAndView modelAndView = new ModelAndView("/index");
		return modelAndView;
	}
}
